import request from '@/utils/request'

/**
* 热处理记录分页查询
* @param {查询条件} data
*/
export function listCksHeatTreatment(query) {
  return request({
    url: 'business/CksHeatTreatment/list',
    method: 'get',
    params: query,
  })
}

/**
* 新增热处理记录
* @param data
*/
export function addCksHeatTreatment(data) {
  return request({
    url: 'business/CksHeatTreatment',
    method: 'post',
    data: data,
  })
}
/**
* 修改热处理记录
* @param data
*/
export function updateCksHeatTreatment(data) {
  return request({
    url: 'business/CksHeatTreatment',
    method: 'PUT',
    data: data,
  })
}
/**
* 获取热处理记录详情
* @param {Id}
*/
export function getCksHeatTreatment(id) {
  return request({
    url: 'business/CksHeatTreatment/' + id,
    method: 'get'
  })
}

/**
* 删除热处理记录
* @param {主键} pid
*/
export function delCksHeatTreatment(pid) {
  return request({
    url: 'business/CksHeatTreatment/delete/' + pid,
    method: 'delete'
  })
}
/**
* 新增热处理记录
* @param data
*/
export function GetDegrees(data) {
  return request({
    url: 'business/CksHeatTreatment/GetDegrees',
    method: 'post',
    data: data,
  })
}